package cn.dao;

import cn.domain.Account;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface AccountDao {

    @Select("select * from account;")
    public List<Account> findAll();

    @Update("insert into account(name,money) values(#{name},#{money});")
    public void saveAccount(Account account);
}
